/*
 * tradutor.h
 *
 *  Created on: Jun 30, 2014
 *      Author: Hercules
 */

#ifndef TRADUTOR_H_
#define TRADUTOR_H_

#include "tokenGetter.h"
typedef struct data {
	char dataSectionLine[150];
	struct data* next;
} DataSection;

void insertInDataList(DataSection* list, DataSection* toAdd);
void getDataAndBssSection(FILE* program_file, FILE* translatedprogram_file,
		DataSection* dat, DataSection *bss, DataSection *text);
void writeDataAndBss(DataSection *dat, DataSection* bss,
		FILE* translatedprogram_file, int usedEscreverInteiro,
		int usedLerInteiro);
void writeLerInteiro(FILE* translatedprogram_file);
void writeEscreverInteiro(FILE* translatedprogram_file);
void writeText(DataSection* text, FILE* translatedprogram_file);
#endif /* TRADUTOR_H_ */
